<?php
	
	include_once "../../php/inc/defines.php";
	include_once "../../php/auth.php";
	include_once "../../php/formhandler.php";
	include_once "../layout.php";
	
	session_start();
	auth::secure(DDE);
	
	$tabs = array("Statistiques", "stats.php", "Recherche", "search.php");
	layout::displayPageHeader($tabs, $tabs[2], false);
	
?>
<div class="arborescence" id="treeViewDiv">
</div>
<div class="content">
	<h1>Recherche d'&eacute;tudiant</h1>
	<p class="columnLabel">Remplir au moins un des champs :</p>
	<?php
		
		$fh = new formhandler();
		$fh->getSearchForm();
		if(isset($_SESSION["searchResults"])) {
			echo "<hr>";
			foreach($_SESSION["searchResults"] as $result)
				echo $result."<br>";
		}
		unset($_SESSION["searchResults"]);
		
	?>
</div>
<?php
	
	layout::displayPageFooter();
	
?>
